# -*- coding: utf-8 -*- 
# 作者:飞虎
# 开发时间:2022/5/23 21:47
from PyQt5.Qt import *


class Window(QWidget):
	def __init__(self):
		super().__init__()
		self.setWindowTitle('样式表学习')
		self.resize(500, 500)
		self.setup_ui()

	def setup_ui(self):
		layout = QVBoxLayout(self)
		label = QLabel("xxx")
		layout.addWidget(label)

		btn = QPushButton('xx2')
		layout.addWidget(btn)

		cb = QComboBox()
		cb.addItems(['1','2','3'])
		layout.addWidget(cb)

		sb = QSpinBox()
		layout.addWidget(sb)





if __name__ == '__main__':
	import sys
	import qdarkgraystyle
	app = QApplication(sys.argv)
	window = Window()
	window.show()


	style_sheet = qdarkgraystyle.load_stylesheet_pyqt5()
	print(style_sheet)
	app.setStyleSheet(style_sheet)

	sys.exit(app.exec_())